package br.ufrgs.inf.engsoft.stp.product;

import java.util.List;

import br.ufrgs.inf.engsoft.stp.persistence.AbstractDao;

public class CategoryDao extends AbstractDao<Category, Long> {
	
	public void create(Category c) {
		super.create(c);
	}
	
	public List<Category> readAll() {
		return super.readAll(Category.class);
	}

	public Category read(Long id) {
		return (Category) super.read(Category.class, id);
	}

	public void update(Category transientObject) {
		super.update(transientObject);
	}

	public void delete(Category persistentObject) {
		super.delete(persistentObject);
	}
	
	public boolean exists(Long id) {
		return (boolean) (super.read(Category.class, id) != null);
	}
}
